package com.test.component;

import com.test.model.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author：徐志荣
 * @Date：2023/6/7 下午 7:09
 */
@Component
public class StudentBeans2 {

    @Bean(name = {"s1","s2"})
    public Student reBack(){
        Student student = new Student();
        student.setAge(28);
        student.setId(2);
        student.setName("lili");
        return student;
    }
}
